package com.zzs.team.Service;

import com.zzs.team.DAO.LocationDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LocationServiceImpl implements LocationService {

    @Autowired
    LocationDao locationDao;


    @Override
    public List<String> findProvinces() {
        return locationDao.findProvinces();
    }

    @Override
    public List<String> findCitiesByProvince(String provinceName) {
        return locationDao.findCitiesByProvince(provinceName);
    }

    @Override
    public List<String> findSchoolsByCity(String cityName) {
        return locationDao.findSchoolsByCity(cityName);
    }
}
